﻿namespace Traffic.Entity;

public partial class InvoiceRecord
{
    public int Id { get; set; }

    /// <summary>
    /// 对应InvoiceLog.ID
    /// </summary>
    public int LogId { get; set; }

    /// <summary>
    /// 发票号 
    /// </summary>
    public string InvoiceNum { get; set; } = null!;

    /// <summary>
    /// 发票类型 （对应线路模板ID）
    /// </summary>
    public int LineModelId { get; set; }

    /// <summary>
    /// 线路名
    /// </summary>
    public string? LineName { get; set; }

    /// <summary>
    /// 旅客票号
    /// </summary>
    public string? ReceiptNum { get; set; }

    /// <summary>
    /// 票面价
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// 票价类型
    /// </summary>
    public string? TicketType { get; set; }

    /// <summary>
    /// 班次编号
    /// </summary>
    public string? FreNumber { get; set; }

    /// <summary>
    /// 班车时间
    /// </summary>
    public DateTime? SetTime { get; set; }

    /// <summary>
    /// 录入票号时间
    /// </summary>
    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 操作人
    /// </summary>
    public string Operator { get; set; } = null!;

    /// <summary>
    /// 对应订单号
    /// </summary>
    public string? OrderNum { get; set; }

    /// <summary>
    /// 旅客姓名
    /// </summary>
    public string? PsgName { get; set; }

    /// <summary>
    /// 旅客证件号
    /// </summary>
    public string? PsgIdcard { get; set; }

    /// <summary>
    /// 旅客电话
    /// </summary>
    public string? PsgMobile { get; set; }

    /// <summary>
    /// 打印发票人
    /// </summary>
    public string? Printer { get; set; }

    /// <summary>
    /// 打印时间
    /// </summary>
    public DateTime? PrintTime { get; set; }

    /// <summary>
    /// 打印状态 0未打印 1打印成功 2打印失败,已跳票  3作废
    /// </summary>
    public int PrintStatus { get; set; }

    /// <summary>
    /// 是否开票（是否已提交税务局）
    /// </summary>
    public bool IsInvoice { get; set; }
}
